<template>
  <el-select v-model="type" placeholder="请选择节点状态">
    <el-option
      v-for="item in NodeStatusEnum"
      :key="item.k"
      :label="item.v"
      :value="item.k">
    </el-option>
  </el-select>
</template>
<script>
import { mapState } from 'vuex';

export default {
  props: {
    value: {},
  },
  computed: {
    ...mapState({
      NodeStatusEnum: (state) => state.NodeModule.NodeStatusEnum,
    }),
    type: {
      get() {
        return this.value;
      },
      set(val) {
        this.$emit('input', val);
      },
    },
  },
};
</script>
